import http from '../http_request.js'; //引进requst方法


export const getlist = (data) => { // 我的预约列表
	return http.getrequest('appointment/getlist',data)
}

export const appointmentadd_post = (data) => { // 添加邀请
	return http.postrequest('appointment/add_post',data)
}
/*↓同一接口↑*/
export const addappointment = (data) => { // 添加邀请
	return http.postrequest('appointment/add',data)
}

export const appointmentinfo = (data) => { // 邀请详情
	return http.getrequest('appointment/info',data)
}

export const appointmentedit = (data) => { // 邀请修改
	return http.postrequest('appointment/edit',data)
}

export const appointmentdelete = (data) => { // 邀请删除
	return http.postrequest('appointment/delete',data)
}

export const appointmentgetlist = (data) => { // 邀请列表
	return http.getrequest('appointment/getlist',data)
}

export const appointmentaccept = (data) => { // 同意邀请
	return http.postrequest('appointment/accept',data)
}
export const appointmentrefuse = (data) => { // 不接受邀请
	return http.postrequest('appointment/refuse',data)
}



export const personaccept = (data) => { // 保安放行
	return http.postrequest('arrive/accept',data)
}

export const personrefuse = (data) => { // 保安不接受
	return http.postrequest('arrive/refuse',data)
}
export const personleave = (data) => { // 保安确认离开
	return http.postrequest('arrive/leave',data)
}



export const arrivearrive_info = (data) => { // 获取该见面状态信息
	return http.getrequest('arrive/arrive_info',data)
}

export const arriveararrived = (data) => { // 用户到达到保安门口
	return http.postrequest('arrive/arrived',data)
}
export const arriveconfirm = (data) => { // 用户到达到见面地点
	return http.postrequest('arrive/confirm',data)
}


/*状态(1-到达，2-保安放行，3-到达指定位置，4-离开，5-保安不接受)----访客请求以下接口 获取状态信息*/
export const arrivearrived_code = (data) => { // 获取状态信息(status=0)
	return http.postrequest('arrive/arrived_code',data)
}
export const arriveaccept_code = (data) => { // 获取进入成功状态信息(status=1)
	return http.postrequest('arrive/accept_code',data)
}

export const arriveconfirm_code = (data) => { // 到部门状态  (status=2)
	return http.postrequest('arrive/confirm_code',data)
}

export const arriveleave_info = (data) => { // 到达状态信息  (status=3)
	return http.postrequest('arrive/leave_info',data)
}
export const codescancode = (data) => { // 保安扫码或者机器扫码
	return http.postrequest('code/scancode',data)
}
export const appointmentstate = (data) => { // 改变邀请|预约状态
	return http.postrequest('appointment/state',data)
}

export const arrivelisten = (data) => { // 改变邀请|预约状态
	return http.postrequest('arrive/listen',data)
}
export const meetingflist = (data) => { // 随访人员列表
	return http.getrequest('meeting/flist',data)

}
export const meetingfcur = (data) => { // 添加、删除随访人员
	return http.postrequest('meeting/fcur',data)
}
export const clockclick = (data) => { // 保安签到
	return http.postrequest('clock/click',data)
}

export const appointmentltime = (data) => { // 记录时间
	return http.postrequest('appointment/ltime',data)
}
// export const arriveaccept = (data) => { // 保安放行
// 	return http.getrequest('arrive/accept',data)
// }
// export const arriverefuse = (data) => { // 保安不接受
// 	return http.getrequest('arrive/refuse',data)
// }
